package com.RedRiver.hospitalsystem.finance_service.client;

import com.RedRiver.hospitalsystem.finance_service.client.param.FindBillDetailInfoClient;
import com.RedRiver.hospitalsystem.finance_service.client.param.FindBillDetailInfoListClient;
import com.RedRiver.hospitalsystem.finance_service.client.param.FindBillDetailInfoListXiClient;
import com.RedRiver.hospitalsystem.result.Result;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(contextId = "BillDetailClient",name="finance-service",path="financeService/billDetail")
public interface BillDetailClient {

    //根据账单id查账单详情
    @GetMapping("/findBillDetailById")
    Result<FindBillDetailInfoListClient> findBillDetailById(@ApiParam("请输入账单id") @RequestParam("id")Integer id);
    //根据账单id查账单详情带名字
    @GetMapping("/findBillDetailByIdXi")
    Result<FindBillDetailInfoListXiClient> findBillDetailByIdXi(@ApiParam("请输入账单id") @RequestParam("id")Integer id);
}
